package cn.dinxian.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author dingxian
 * @Title:
 * @param:
 * @return:
 * @Date 2023/2/28 15:40
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MyProcessDefinition  extends PageDTO {
  
  private  String resourceName;
  
  private  String deploymentId;
  private String  appVersion;
  private String  engineVersion;
  private String  tenantId;
  private String  diagramResourceName;

  private String  version;
  private String  description;
  private String  key;
  private String  name;
  private String  category;
  private String  id;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date deploymentTime;
  private String  suspendState;

  
  
  
  public MyProcessDefinition(MyProcessDefinition processDefinition, ActReDeploymentVO actReDeploymentVO) {
    this.id = processDefinition.getId();
    this.name = processDefinition.getName();
    this.key = processDefinition.getKey();
    this.version = String.valueOf(processDefinition.getVersion());
    this.deploymentId = processDefinition.getDeploymentId();
    this.resourceName = processDefinition.getResourceName();
    this.deploymentTime = actReDeploymentVO.getDeployTime();
    //this.suspendState = String.valueOf(processDefinition.getSuspensionState());
  }


}
